# item_one=3
# item_two=2
# item_three=9
# total=item_one +\
# item_two +\
#  item_three
#  print(total)
#  word ='word'
# sentence="这是一个句子。"
# paragraph="这是一个段落。"
# print(sentence)
# print(paragraph)
# print(word)
# print("hello world")
# print("hello world")
# print("hello world")
# x="a"
# y="b"
# #换行输出
# print (x)
# print (y)
# print('--------')
# #不换行输出
# print (x,end='')
# print (y,end='')
# #不换行输出
# print (x+y,end='')
# import sys; x="rko";sys.stdout.write(x+'\n')
# import expression
# import suite
# if expression:
#     suite
# elif expression == "hello":
#     suite
# else:
#     suite
#str ='Hello ?World!'
# print (str)
# #输出完整字符串
# print (str[9])
# #输出字符串中的第一个字符
# print (str[2:5])
# #输出字符串中第三个至第六个之间的字符串
# print (str[2:])
# #输出从第三个字符开始的字符串
# print (str * 2)
#  #输出字符串两次
#  print(str + "n屁")
# 输出连接的字符串
#  a,b,c=1,3,"ko"
#  print(a,end=' ')
#  print(b,end=' ')
# print(c)
# list =['ruioob',786,2.23,'john',70.2 ]
# tinylist=[123,'john']
# print(list)
# #输出完整列表
# print (list[0][2:5])
# #输出列表的第一个元素
# print (list[1:3])
# #输出第二个至第三个元素
# print (list[2:])
# #输出从第三个开始至列表末尾的所有元素
# print (tinylist *2)
# #输出列表两次
# print (list + tinylist)
# # #打印组合的列表
# tuple =('runoob',786,2.23,'john',70.2)
# list =['runoob',786,2.23,'john',70.2]
# list[2]=1000
# print(tuple)
# print(list)
# dict ={}
# dict['one']="This is one"
# dict[2]="This is two"
# tinydict ={'name':'runoob','code':6734,'dept':'sales'}
# print (dict['one'])
# #输出键为'one'的值
# print (dict[2])
# #输出键为2的值
# print (tinydict)
# # 输出完整的字典
# print (list(tinydict.keys()))
# #输出所有键
# print (list(tinydict.values()))
# #输出所有值
# print(', '.join(str(x) for x in tinydict.values()))
# n = int(input("请输入一个正数: "))
# if n <= 1:
#     print("没有质数")
# else:
#     for i in range(2, n + 1):
#         is_prime = True
#         for j in range(2, i):
#             if i % j == 0:
#                 is_prime = False
#                 break
#         if is_prime:
#             print(i, end=" ")
# 水仙花数:
# print("请输入n的值")
# n=int(input())
# for num in range(100, n+1):
#     s = str(num)
#     if sum(int(i)**len(s) for i in s) == num:
#         print(num)
# n = int(input("台阶数: "))
# a, b = 1, 1
# for i in range(n):
#     a, b = b, a + b
# print(a)
